<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;

class Introduce extends Controller{
    public function index(){
        $introduce=Db::name('introduce')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            ->limit(0,1)
            ->select();

        $introduces=Db::name('introduce')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            ->select();





        $this->assign('introduces',$introduces);
        $this->assign('introduce',$introduce);
        return view("introduce");
    }

}